package proxy.jdk2;

public class ArithmeticCalculatorImpl implements ArithmeticCalculator{
    @Override
    public Integer add(Integer a, Integer b) {
        System.out.println("开始执行add()......");
        return a + b;
    }

    @Override
    public Integer sub(Integer a, Integer b) {
        Integer result = a - b;
        System.out.println("开始执行sub()......");
        return result;
    }

    @Override
    public Integer mul(Integer a, Integer b) {
        Integer result = a * b;
        System.out.println("开始执行mul()......");
        return result;
    }

    @Override
    public Float div(Integer a, Integer b) {
        Float result = Float.valueOf(a / b);
        System.out.println("开始执行div()......");
        return result;
    }
}
